<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

require '../vendor/autoload.php';

session_start();
date_default_timezone_set('Asia/Shanghai');
$settings = require  '../config/config.php';
$app = new \Slim\App($settings);


//引入rount
foreach(glob('../bootstrap/*.php') as $file) {

    require_once $file;
}

//引入rount
foreach(glob('../routes/*.php') as $file) {
    require_once $file;
}
$app->get("/dddd",function(Request $request,Response $response){
    echo "ddddd";
});
$app->run();
